package org.mysocial.datamodel;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Picture extends BinaryContent
{
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "photo_album_fk", nullable = true)
	private PhotoAlbum photoAlbum;

	public PhotoAlbum getPhotoAlbum()
	{
		return photoAlbum;
	}

	public void setPhotoAlbum(PhotoAlbum photoAlbum)
	{
		this.photoAlbum = photoAlbum;
	}
}
